package com.membership.stumembership.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.membership.stumembership.domain.Student;
import com.membership.stumembership.mapper.StudentMapper;
import com.membership.stumembership.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {


    @Autowired
    private StudentMapper studentMapper;

    /**
     * 查询全部
     * @param page
     * @param stu
     * @return
     */

    @Override
    public IPage<Student> selectByPage(Page<Student> page, Student stu) {
        return studentMapper.selectByPage(page,stu);
    }
}

